// 销售人员子类
public class Salesman extends Employee {
    private double baseSalary;
    private double commission;

    public Salesman(String name, String gender, String birthDate, double baseSalary, double commission) {
        super(name, gender, birthDate);
        this.baseSalary = baseSalary;
        this.commission = commission;
    }

    @Override
    public String getType() {
        return "销售员";
    }

    @Override
    public void computeSalary() {
        double salary = baseSalary + commission;
        System.out.println(getType() + " " + name + " 本月工资为 " + salary + " 元。");
    }
}
    